package com.neiquan.backstage.scene_visit_reservation.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neiquan.backstage.common.util.ExtraSpringHibernateTemplate;
import com.neiquan.backstage.pub.bsc.dao.po.SceneVisitReservation;
import com.neiquan.backstage.scene_visit_reservation.SceneVisitReservationService;

@Service
public class SceneVisitReservationServiceImpl implements SceneVisitReservationService {
	private static Class<?> poc = SceneVisitReservation.class;
	@Autowired
	private ExtraSpringHibernateTemplate extraSpringHibernateTemplate;

	@Override
	public SceneVisitReservation queryById(Integer id) {
		return extraSpringHibernateTemplate.findFirstOneByPropEq(poc, "sceneVisitReservationId", id);
	}
}
